import requests from '@/utils/request-proxy'

//获取全部商品数据(分页)
export const reqGetOrderByPage = (currentPage, size) => requests({ url: `/orders/page/${currentPage}/${size}`, method: 'get' })

//根据订单号获取订单
export const reqGetByOrderId = (orderId) => requests({ url: `/orders/${orderId}`, method: 'get' })

//根据手机号获取订单(分页)
export const reqGetByPhone = (currentPage, size, phone) => requests({ url: `/orders/pageByPhone/${currentPage}/${size}/${phone}`, method: 'get' })
